package com.expert.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.expert.pojo.ExtractResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @ClassName: ExtractResultMapper
 * @Author: cxs
 * @Date: 2024/03/26 15:38
 * @Description:
 **/
@Mapper
public interface ExtractResultMapper extends BaseMapper<ExtractResult> {
    @Select("select expert_id,count(*) as count from  extract_result where attendance_time between #{start} and #{end} group by expert_id having count>10")
    List<Long> queryOver(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);
}
